<!-- /BORDERED HOVER -->
<div class="row">
    <div class="col-md-12">
        <!-- BOX -->
        <div class="box border orange">
            <div class="box-title">
                <h4><i class="fa fa-hand-o-up"></i>Hak Akses Manajemen</h4>
            </div>
            <div class="box-body">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>Nama Menu</th>
                            <?php
                            foreach ($list as $l) {
                                ?>
                                <th><?php echo $l->nama_jabatan; ?></th>
                            <? } ?>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        $no = 4;
                        foreach ($menu as $menu) {
                            ?>
                            <tr>
                                <?php if ($menu->parent == NULL) { ?>
                                    <td colspan="<?php echo $no++; ?>"><strong><?php echo $menu->nama_menubar; ?></strong></td>
                                <?php } ?>
                            </tr>
                            <tr>
                                <?php if ($menu->parent != NULL) { ?>
                                    <td><?php echo '&nbsp&nbsp&nbsp&nbsp&nbsp' . $menu->nama_menubar; ?></td>
                                    <?
                                    $l = 1;
                                    foreach ($list as $l) {
                                        ?>
                                        <td><div class="col-md-8"><input type="checkbox" name="<?php echo $menu->id_jabatan; ?>" class="uniform" value="<?php echo $menu->id_peran; ?> <?php if($menu->id_menubar == 101 && $menu->id_jabatan = 2) echo 'checked'; ?>" /></div></td>
                                        <?php
                                    }
                                }
                                ?>
                            </tr>
                            <?php
                        }
                        ?>
                    </tbody>
                </table>
                <div class="pull-right"><button class="btn btn-warning" type="submit" name="submit" value="">Save</button></div>
            </div>
        </div>
        <!-- /BOX -->
    </div>
</div>
<!-- /BORDERED HOVER -->

<!-- JAVASCRIPTS -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- JQUERY -->
<script src="<?php echo base_url('assets/js/jquery/jquery-2.0.3.min.js'); ?>"></script>
<!-- JQUERY UI-->
<script src="<?php echo base_url('assets/js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js'); ?>"></script>
<!-- BOOTSTRAP -->
<script src="<?php echo base_url('assets/bootstrap-dist/js/bootstrap.min.js'); ?>"></script>


<!-- DATE RANGE PICKER -->
<script src="<?php echo base_url('assets/js/bootstrap-daterangepicker/moment.min.js'); ?>"></script>

<script src="<?php echo base_url('assets/js/bootstrap-daterangepicker/daterangepicker.min.js'); ?>"></script>
<!-- SLIMSCROLL -->
<script type="text/javascript" src="<?php echo base_url('assets/js/jQuery-slimScroll-1.3.0/jquery.slimscroll.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo base_url('assets/js/jQuery-slimScroll-1.3.0/slimScrollHorizontal.min.js'); ?>"></script>
<!-- BLOCK UI -->
<script type="text/javascript" src="<?php echo base_url('assets/js/jQuery-BlockUI/jquery.blockUI.min.js'); ?>"></script>
<!-- TABLE CLOTH -->
<script type="text/javascript" src="<?php echo base_url('assets/js/tablecloth/js/jquery.tablecloth.js'); ?>"></script>
<script type="text/javascript" src="<?php echo base_url('assets/js/tablecloth/js/jquery.tablesorter.min.js'); ?>"></script>
<!-- COOKIE -->
<script type="text/javascript" src="<?php echo base_url('assets/js/jQuery-Cookie/jquery.cookie.min.js'); ?>"></script>
<!-- CUSTOM SCRIPT -->
<script src="<?php echo base_url('assets/js/script.js'); ?>"></script>
<script>
    jQuery(document).ready(function() {
        App.setPage("simple_table");  //Set current page
        App.init(); //Initialise plugins and elements
    });
</script>
<!-- /JAVASCRIPTS -->

<?php
//                                switch($menu->parent) {
//                                    case 1 : 
//                                        echo '<strong>News : </strong>' . $menu->nama_menubar . '<br>';
//                                        break;
//                                    case 2 : 
//                                        echo '<strong>Manajemen : </strong>' . $menu->nama_menubar . '<br>';
//                                        break;
//                                    case 3 : 
//                                        echo '<strong>Operator : </strong>' . $menu->nama_menubar . '<br>';
//                                        break;
//                                    case 4 : 
//                                        echo '<strong>Klien : </strong>' . $menu->nama_menubar . '<br>';
//                                        break;
//                                    case 5 : 
//                                        echo '<strong>Jadwal : </strong>' . $menu->nama_menubar . '<br>';
//                                        break;
//                                    case 6 : 
//                                        echo '<strong>Laporan : </strong>' . $menu->nama_menubar . '<br>';
//                                        break;
//                                }
?>